package com.sdhs.ssp.transcation;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

import com.sdhs.paas.sdk.core.web.client.EnablePaasRestTemplate;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @author kangjichang
 */
@SpringBootApplication
@EnablePaasRestTemplate
//@EnableDiscoveryClient
@EnableAutoConfiguration(exclude = { JpaRepositoriesAutoConfiguration.class,HibernateJpaAutoConfiguration.class, DataSourceAutoConfiguration.class,
		MybatisAutoConfiguration.class })
@ComponentScan(value = { "com.sdhs"})
@MapperScan("com.sdhs.ssp.transcation.repository")
@EnableSwagger2
public class TranscationApplication {

	public static void main(String[] args) {
		SpringApplication.run(TranscationApplication.class, args);
	}

}
